<?php if (!defined('THINK_PATH')) exit();?>    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <title></title>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/category.css" />
    <script type="text/javascript" src="__PUBLIC__/js/jquery-1.8.2.min.js"></script>
    <script type="text/javascript">
        var ACTION = "__URL__";
    </script>
    <script type="text/javascript" src="__PUBLIC__/Admin/js/category.js"></script>
</head>
<body>

		<h2>
            <a>所在位置：商品管理>商品列表</a>
        </h2>
        <br/>
       <table class="table1">
        <thead>
            <tr style="background:#72A9D3">
                <th width="20" align="center">ID</th>
                <th>商品名称</th>
                <th>商品预览图</th>
                <th>商品价格</th>
                <th>商品货号</th>
                <th width="400">操作</th>
            </tr>
        </thead>
        <tbody>
            <?php if(is_array($goods)): foreach($goods as $key=>$val): ?><tr class="catgorylist">
                <td align="center"><?php echo ($val["id"]); ?></td>
                <td><?php echo ($val["name"]); ?></td>
                <td><img src="<?php echo ($val["listpic"]); ?>" width="100" title="<?php echo ($val["name"]); ?>" alt="<?php echo ($val["name"]); ?>"></td>
                <td>￥<?php echo ($val["sprice"]); ?></td>
                <td><?php echo ($val["number"]); ?></td>
                <td>
                    <a href="<?php echo U('itemList',array('gid'=>$val['id']));?>">添加货品</a> |
                    <a href="<?php echo U('editCategory',array('cid'=>$n['id']));?>">编辑</a> |
                    <a href="javascript:void(0)" class="delcategory" cid="<?php echo ($n["id"]); ?>">删除该商品</a>
                </td>
            </tr><?php endforeach; endif; ?>
            <tr>
                <td colspan="5"></td>
                <td><a href="<?php echo U('addGoods');?>"><font color="red" size="3">点击添加商品！</a></font></td>
            </tr>
            <?php if($goodsCounts > 0): ?><tr>
                    <td colspan="6" align="center"><?php echo ($page); ?></td>
                </tr><?php endif; ?>
        </tbody>
    </table>
</body>
</html>